package com.ruoyi.web.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.validator.group.AddGroup;
import com.ruoyi.common.validator.group.UpdateGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("uc_quo_table")
public class UcQuoTable extends BaseEntity{

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    @NotNull(groups = {UpdateGroup.class})
    private Long id;

    @ApiModelProperty(value = "名称")
    @NotBlank(groups = {AddGroup.class, UpdateGroup.class})
    @Excel(name = "名称")
    private String name;

    private Integer tableType;

    private Integer isUsed;

    @TableLogic
    private Integer delStatus;

    @TableField(exist = false)
    private List<UcQuoProject> ucQuoProjects;

    @TableField(exist = false)
    private List<UcQuoProject> ucQuoProjectList;

}
